<!--
 * @Description: 
 * @Author: 赵华宇
 * @Date: 2025-04-25 14:33:56
 * @LastEditors: 赵华宇
 * @LastEditTime: 2025-04-25 14:37:52
-->
<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>绝对定位居中</title>
    <style>
        img{
            position: absolute;
            left:50%;
            top:50%;
            /* margin-left: -98px;
            margin-top: -21px; */
            transform: translate(-50%,-50%);
        }
    </style>
</head>
<body>
    <img src="./images/logo.png" alt="">
</body>
</html>